package com.whjz.dcfs.util.enums;

/**
 * Created by ehsy_it on 2016/6/19.
 */
public enum BdzShiFanEnum {
    A("13MT0227","蔡家嘴变电站"),
    B("02715071015_ESM100","紫阳湖变电站"),
    C("02715071016_ESM100","宗关变电站"),
    D("02715071017_ESM100","沈阳路变电站");

    private String bdzCode;
    private String bdzName;

    BdzShiFanEnum(String bdzCode,String bdzName){
        this.bdzCode = bdzCode;
        this.bdzName = bdzName;
    }

    public static String getBdzNameByBdzCode(String bdzCode) {
        for (BdzShiFanEnum bdzShiFanEnum : BdzShiFanEnum.values()) {
            if(bdzShiFanEnum.getBdzCode().equalsIgnoreCase(bdzCode))
                return bdzShiFanEnum.getBdzName();
        }
        return "-";
    }

    public String getBdzCode() {
        return bdzCode;
    }

    public String getBdzName() {
        return bdzName;
    }
}